package com.cqc.zhbjcqc.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by ${cqc} on 2016/9/29.
 */

public class ToastUtil {

    private static Toast toast;

    public static void showShortToast(Context context, String content) {
        if (toast == null) {
            toast = Toast.makeText(context, "", Toast.LENGTH_SHORT);
        }
        toast.setText(content);
        toast.show();
    }

    public static void showLongToast(Context context, String content) {
        if (toast == null) {
            toast = Toast.makeText(context, "", Toast.LENGTH_LONG);
        }
        toast.setText(content);
        toast.show();
    }
}
